import {
    GetAxios,
    PostAxios,
  } from "./public";
  const BaseUrl = {
    Common: {
      // 页面分类
      TypeAdd: "/api/LowCode/AddType",
      TypeEdit: "/api/LowCode/EditType",
      GetTypeTreeList: "/api/LowCode/GetTypeTreeList",
      TypeDelete: "/api/LowCode/TypeDelete",
      // 表单管理
      FormAdd: "/api/LowCode/AddForm",
      FormEdit: "/api/LowCode/SaveFromInfo",
      FormSave: "/api/LowCode/SaveFromInfo",
      FormPage: "/api/LowCode/GetPageList",
      FormSingle: "/api/LowCode/Detail",
      FormDelete: "/api/LowCode/Delete",
    },
  };
  export default {
    TypeAdd(data) {
      return PostAxios(BaseUrl.Common.TypeAdd, data);
    },
    TypeEdit(data) {
      return PostAxios(BaseUrl.Common.TypeEdit, data);
    },
    GetTypeTreeList(data) {
      return PostAxios(BaseUrl.Common.GetTypeTreeList, data);
    },
    TypeDelete(data) {
      return PostAxios(BaseUrl.Common.TypeDelete, data);
    },

    FormAdd(data) {
      return PostAxios(BaseUrl.Common.FormAdd, data);
    },
    FormEdit(data) {
      return PostAxios(BaseUrl.Common.FormEdit, data);
    },
    FormSave(data) {
      return PostAxios(BaseUrl.Common.FormSave, data);
    },
    FormPage(data) {
      return PostAxios(BaseUrl.Common.FormPage, data);
    },
    FormSingle(data) {
      return PostAxios(BaseUrl.Common.FormSingle, data);
    },
    FormDelete(data) {
      return PostAxios(BaseUrl.Common.FormDelete, data);
    },
  };
  